package com.dongzhu1428.express.module1.rest;

import com.dongzhu1428.express.module1.Result;
import com.dongzhu1428.express.module1.entity.ExpressStation;
import com.dongzhu1428.express.module1.mapper.express.ExpressStationMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 驿站模块
 */
@RestController
@RequestMapping("/expressStation")
public class ExpressStationController {
	@Autowired
	ExpressStationMapper expressStationMapper;

	/**
	 * 获取驿站列表
	 * @return
	 */
	@GetMapping("getExpressStationList")
	public Result<List<ExpressStation>> getExpressStationList(){
		return  Result.success(expressStationMapper.selectList(null));
	}


}
